﻿using System;
using System.Collections;
using ASPNETVN.PORTAL.Components.Helpers;

namespace ASPNETVN.PORTAL.Modules.ACTP.MENU
{
    public class MenuItem
    {

        public static ArrayList FetchTeamItems(Guid moduleId)
        {
            ArrayList items = new ArrayList();
            items.Add(new { Name = "Team list", ImageUrl = "Modules/ASPNETVN.PORTAL.Modules.ACTP.MENU/Images/team.gif", Url = HttpUrlBuilder.BuildModulePageUrl(moduleId, 0, ModulePages.TeamList).Substring(2) });
            items.Add(new { Name = "Create team", ImageUrl = "Modules/ASPNETVN.PORTAL.Modules.ACTP.MENU/Images/add.gif", Url = HttpUrlBuilder.BuildAddEditUrl(moduleId, 0, "AddEditTeam").Substring(2) });
            items.Add(new { Name = "Search for teams", ImageUrl = "Modules/ASPNETVN.PORTAL.Modules.ACTP.MENU/Images/search.png", Url = HttpUrlBuilder.BuildModulePageUrl(moduleId, 0, ModulePages.TeamSearch).Substring(2) });
            return items;
        }
        public static ArrayList FetchProjectItems(Guid moduleId)
        {
            ArrayList items = new ArrayList();
            items.Add(new { Name = "Project list", ImageUrl = "Modules/ASPNETVN.PORTAL.Modules.ACTP.MENU/Images/project_small.png", Url = HttpUrlBuilder.BuildModulePageUrl(moduleId, 0, ModulePages.ProjectList).Substring(2) });
            items.Add(new { Name = "Create project", ImageUrl = "Modules/ASPNETVN.PORTAL.Modules.ACTP.MENU/Images/add.gif", Url = HttpUrlBuilder.BuildAddEditUrl(moduleId, 0, "AddEditProject").Substring(2) });
            items.Add(new { Name = "Search for projects", ImageUrl = "Modules/ASPNETVN.PORTAL.Modules.ACTP.MENU/Images/search.png", Url = HttpUrlBuilder.BuildModulePageUrl(moduleId, 0, ModulePages.ProjectSearch).Substring(2) });
            return items;
        }

        public static ArrayList FetchTaskItems(Guid moduleId)
        {
            ArrayList items = new ArrayList();
            items.Add(new { Name = "Task list", ImageUrl = "Modules/ASPNETVN.PORTAL.Modules.ACTP.MENU/Images/task_small.gif", Url = HttpUrlBuilder.BuildModulePageUrl(moduleId, 0, ModulePages.TaskList).Substring(2) });
            items.Add(new { Name = "Create task", ImageUrl = "Modules/ASPNETVN.PORTAL.Modules.ACTP.MENU/Images/add.gif", Url = HttpUrlBuilder.BuildAddEditUrl(moduleId, 0, "AddEditTask").Substring(2) });
            items.Add(new { Name = "Search for tasks", ImageUrl = "Modules/ASPNETVN.PORTAL.Modules.ACTP.MENU/Images/search.png", Url = HttpUrlBuilder.BuildModulePageUrl(moduleId, 0, ModulePages.TaskSearch).Substring(2) });
            return items;
        }

        public static ArrayList FetchEmployeeItems(Guid moduleId)
        {
            ArrayList items = new ArrayList();
            items.Add(new { Name = "Employee List", ImageUrl = "Modules/ASPNETVN.PORTAL.Modules.ACTP.MENU/Images/contact_small.gif", Url = HttpUrlBuilder.BuildModulePageUrl(moduleId, 0, ModulePages.EmployeeList).Substring(2) });
            items.Add(new { Name = "Create employee", ImageUrl = "Modules/ASPNETVN.PORTAL.Modules.ACTP.MENU/Images/add.gif", Url = HttpUrlBuilder.BuildAddEditUrl(moduleId, 0, "AddEditEmployee").Substring(2) });
            items.Add(new { Name = "Search for employees", ImageUrl = "Modules/ASPNETVN.PORTAL.Modules.ACTP.MENU/Images/search.png", Url = HttpUrlBuilder.BuildModulePageUrl(moduleId, 0, ModulePages.EmployeeSearch).Substring(2) });
            return items;
        }

        public static ArrayList FetchCertificationItems(Guid moduleId)
        {
            ArrayList items = new ArrayList();
            items.Add(new { Name = "Certification List", ImageUrl = "Modules/ASPNETVN.PORTAL.Modules.ACTP.MENU/Images/certification_small.png", Url = HttpUrlBuilder.BuildModulePageUrl(moduleId, 0, ModulePages.CertificationList).Substring(2) });
            items.Add(new { Name = "Create certification", ImageUrl = "Modules/ASPNETVN.PORTAL.Modules.ACTP.MENU/Images/add.gif", Url = HttpUrlBuilder.BuildAddEditUrl(moduleId, 0, "AddEditCertification").Substring(2) });
            items.Add(new { Name = "Search for certifications", ImageUrl = "Modules/ASPNETVN.PORTAL.Modules.ACTP.MENU/Images/search.png", Url = HttpUrlBuilder.BuildModulePageUrl(moduleId, 0, ModulePages.CertificationSearch).Substring(2) });
            return items;
        }

    }
}
